﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="ManageGallery.aspx.vb" Inherits="Arwani.Backend_ManageGallery" %>

<%@ Register Src="Menu.ascx" TagName="Menu" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title> Arwani Backend Panel</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table border="0" cellpadding="2" cellspacing="2" width="100%" align="center">
            <tr>
                <td align="center">
                    <uc1:Menu ID="Menu1" runat="server" />
                </td>
            </tr>
            <tr>
                <td align="center">
                    <table border="0" cellpadding="3" cellspacing="3">
                        <tr>
                            <td>
                                <table border="0" cellpadding="2" cellspacing="2">
                                    <tr>
                                        <td align="left">
                                            <asp:Label ID="lblProductImage" runat="server" Text="Product Image"></asp:Label>
                                        </td>
                                        <td align="left">
                                            <input id="flProductImage" runat="server" type="file" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" colspan="2">
                                            <asp:Button ID="btnSave" runat="server" Text="Save" />
                                            &nbsp;<asp:Button ID="cmdBack" runat="server" Text="Back" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:DataList ID="dtProductImages" runat="server" RepeatColumns="4">
                                    <ItemTemplate>
                                        <table border="0" cellpadding="2" cellspacing="2">
                                            <tr>
                                                <td>
                                                    <asp:Image ID="imgProduct" ImageUrl='<%#getImage(DataBinder.Eval(Container.DataItem,"productimage")) %>' Width="100" runat="server" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:LinkButton ID="lnkDelete" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"productimage") %>' runat="server" Text="Delete" CommandName="Delete"
                                                        ></asp:LinkButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </ItemTemplate>
                                </asp:DataList>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
